const label = '段落/标题'
const name = 'p'

export default {
  icon: 'icon-span',
  label,
  name,
  rule() {
    return {
      type: name,
      title: '',
      native: true,
      children: ['这是一段文字'],
      style: {
        color: '#000',
        fontSize: '20px',
        display: 'block',
        textAlign: 'left'
      },
      class: ''
    }
  },
  props() {
    return [
      {
        type: 'input',
        field: 'formCreateChild',
        title: '内容',
        props: {
          type: 'textarea'
        }
      },
      {
        type: 'input',
        field: 'formCreateClass',
        title: '类名',
        props: {
          type: 'input'
        }
      },
      {
        type: 'select',
        field: 'formCreateStyle>textAlign',
        title: '设置文本对齐方式',
        options: [{
          label: '左对齐',
          value: 'left'
        }, {
          label: '居中对齐',
          value: 'center'
        }, {
          label: '右对齐',
          value: 'right'
        }]
      }
    ]
  }
}
